<?php
$myDir = dirname(__FILE__) . "/";
require_once($myDir."../autoload.php");
if ( $argc == 1 || $argv[1] == "--help" ) {
  die( "\n\tUsage: php ".$argv[0]." [DBAggregator_Name] [PATH_TO_PROJECT]\n\n");  
}

$agrName = $argv[1];
$path    = $argv[2];


if (is_file($path."data_aggregators/".$agrName.".php")) unlink($path."data_aggregators/".$agrName.".php");
WebUtils::removeClassFromGenAutoload($agrName, $path);